import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.5
import Qt5Compat.GraphicalEffects

Window {
    id: main
    visible: true
    width: 300
    height: 300
    //color: "#00000000"
    flags: Qt.FramelessWindowHint | Qt.Window

    Item {
        width: 300
        height: 300

        Rectangle {
            anchors.fill: parent
        }

        Image {
            id: butterfly
            anchors.top: parent.top
            anchors.horizontalCenter:parent.horizontalCenter
            source: "qrc:/images/remote-desktop.png"
            //sourceSize:Qt.size(120,120)
            sourceSize: Qt.size(parent.width, parent.height)
            smooth: true
            visible: false
        }

        DropShadow {
            anchors.fill: butterfly
            color: "#000000"
            radius: 8
            horizontalOffset: 0
            verticalOffset: 20
            spread: 0
            source: butterfly
        }
    }
}
